import { BasicColumn, FormSchema } from '/@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '经销商编码',
    dataIndex: 'orgaId',
    width: 100,
  },
  {
    title: '用户名',
    dataIndex: 'username',
    width: 100,
  },
  {
    title: '姓名',
    dataIndex: 'realName',
    width: 100,
  },
  {
    title: '状态',
    dataIndex: 'statusName',
    width: 100,
  },
  {
    title: '电子邮件',
    dataIndex: 'email',
    width: 100,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    label: '真实姓名',
    field: 'realName',
    component: 'Input',
  },
  {
    label: '经销商编码',
    field: 'orgaId',
    component: 'Input',
  },
];

export const formSchema: FormSchema[] = [
  {
    field: 'id',
    label: 'id',
    component: 'Input',
    show: false,
  },
  {
    label: '用户名',
    field: 'username',
    component: 'Input',
    required: true,
  },
  // {
  //   label: '密码',
  //   field: 'userPassword',
  //   component: 'Input',
  //   required: true,
  // },
  {
    label: '姓名',
    field: 'realName',
    component: 'Input',
    required: true,
  },
  {
    label: '状态',
    field: 'status',
    component: 'Input',
    required: true,
  },
  {
    label: '电子邮件',
    field: 'email',
    component: 'Input',
    required: true,
  },
  // {
  //   label: 'CRM公司编码',
  //   field: 'companyCodeCrm',
  //   component: 'Input',
  //   required: true,
  // },
];
